package action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.*;

import dao.TIpApplyDao;

import bean.IpApplyForm;

public class IpApplyAction extends Action {

    public ActionForward execute(ActionMapping map, ActionForm frm,
            HttpServletRequest request, HttpServletResponse response) {

        IpApplyForm objFrm = (IpApplyForm) frm;

        TIpApplyDao.saveIpApply(objFrm,
                (String) request.getSession().getAttribute("userId"));

        return map.findForward("success");

    }
}
